home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / kgdb.sun3 / ptrace.c < prev    next >
C/C++ Source or Header  |  1989-08-29  |  1KB  |  50 lines

  1. /*
  2.  * ptrace.c --
  3.  *
  4.  *    Routines for creating a Unix like debugger interface to Sprite.
  5.  *
  6.  * Copyright 1988 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  *
  15.  * $Header: /sprite/src/kernel/mach/spur.md/RCS/machConfig.c,v 1.2 88/11/11 15:3
  16. 6:43 mendel Exp $ SPRITE (Berkeley)
  17.  */
  18.  
  19. #include "sys/ptrace.h"
  20. #include <errno.h>
  21. #include <signal.h>
  22.  
  23.  
  24. /* 
  25.  *----------------------------------------------------------------------
  26.  *
  27.  * ptrace --
  28.  *
  29.  *    Emulate Unix ptrace system call.
  30.  *
  31.  * Results:
  32.  *    An integer.
  33.  *
  34.  * Side effects:
  35.  *
  36.  *----------------------------------------------------------------------
  37.  */
  38.  
  39. ptrace (request,pid,addr,data, addr2)
  40.      enum ptracereq request;    /* Data
  41.      int pid;            /* Process id of debugee. */
  42.      char *addr;        
  43.      int data;
  44.      char *addr2;
  45. {
  46.      extern int    errno;
  47.      errno = EINVAL;
  48.     return -1;
  49. }
  50.